{extend name="common/adminBase" /}
{block name="body"}
<style>
    .layui-input-inline{
        width: 600px !important;
    }
</style>
<body >
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form">
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>打分标准
                </label>
                <div class="layui-input-inline">
                    <textarea placeholder="请输入打分标准" name='bz' class="layui-textarea"></textarea>
                </div>
      
            </div>




            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    增加
                </button>
            </div>
        </form>
    </div>
</div>
<script>layui.use(['form', 'layer'],
    function() {
        $ = layui.jquery;
        var form = layui.form,
            layer = layui.layer;

        //监听提交
        form.on('submit(add)', function(data) {
            console.log(data);
            //发异步，把数据提交给php
            $.ajax({
                url:"",
                data:data.field,
                type:'post',
                dataType:'json',
                success:function (res) {
                    if (res.status==1){
                        layer.msg("增加成功",{icon:6,time:1500},function() {
                            location.href ='/index/power/addzhuanjia';
                        });
                    }else{
                        layer.alert(res.msg,function (index) {
                            layer.close(index);
                        })
                    }
                }
            })

            return false;
        });

    });
</script>

</body>

{/block}
